<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 比较两个值是否相等

        console.log(Object.is('a', 'a')); // true
        console.log(Object.is(NaN, NaN)); // true
        console.log(Object.is(+0, -0)); // false
    </script>
</body>

</html>